<!DOCTYPE html>
<script>
if (window.testRunner) {
  testRunner.dumpAsText();
  testRunner.waitUntilDone();
}

var done = false;
function repeatHandler() {
  if (done && window.testRunner)
    testRunner.notifyDone()
}
function handler() {
  group.before(firstroot);
  done = true;
}
</script>
<svg id="firstroot"></svg>
<svg>
  <g id="group">
    <set attributeName="stroke-dashoffset" xlink:href="#firstroot" onbegin="handler()"/>
  </g>
  <animate attributeName="stroke-linejoin" dur="0.1s" repeatDur="indefinite" onrepeat="repeatHandler()">
</svg>
<p>PASS if no crash</p>
